//
//  DocumentView.m
//  Kjs-iOS
//
//  Created by 江伟 on 16/7/19.
//  Copyright © 2016年 jmhz. All rights reserved.
//

#import "DocumentView.h"
#import "UIColor+KjsColor.h"
@implementation DocumentView

-(void)setDocument:(ItemDocument *)document
{
    self.documentNameLab.adjustsFontSizeToFitWidth = YES;
    self.documentNameLab.text = document.documentName;
    if (document.ifHrefValid == 1) {
        [self.documentNameLab setTextColor:[UIColor kjsMainColor]];
    }
}

@end
